package com.baizhi.interfacex2;

public class Bird extends Pet implements Flying{

    public Bird() {
    }

    public Bird(String name, int age, String color) {
        super(name, age, color);
    }

    @Override
    public void eat() {
        System.out.println("这只"+getColor()+"颜色的"+getAge()+"岁的叫"+getName()+"的鸟在吃虫子！！！");
    }

    @Override
    public void fly() {
        System.out.println("这只鸟在扑腾着翅膀飞");
    }
}
